<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of SessionService
 *
 * @author Administrator
 */
class SessionService {

    function isExist($sessionId) {
        $where['sessionid'] = array('eq', $sessionId);
        return!is_null(D('session')->where($where)->find());
    }

    function insert($session) {
        D('session')->add($session);
    }

    function count() {
        return D('session')->count();
    }

}

?>
